package com.netty.modbus.exception;

import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;

/**
 * description: ExceptionHandler <br>
 * date: 2021/10/8 8:51 <br>
 * @author: lwy <br>
 * @version: 1.0 <br>
 */
public class ExceptionHandler extends ChannelHandlerAdapter {

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
        System.out.println(cause.getMessage());
    }

}
